<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="转账取款单打印" />
<%@ include file="../inc/PrintTitle.jsp"%>
<head>
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doCancel(){
		window.close();
	}
	function doPrint(){
		ShowConfirm('确认框','确定开始打印吗？',340,80,"doPrintCallBack()");
	}
	function doPrintCallBack(){
		if(popRetVal!=null){
			document.getElementById("noPrinSpan").style.display="none";
			printContent("管理易-转账取款单","${enterpriseInfo.doPrint}","${enterpriseInfo.printWidth}");
			document.getElementById("noPrinSpan").style.display="";
		}
	}
	function showTotalDiv(cost,divId){
		var str=getBigMoney(""+cost);
		document.getElementById(divId).innerHTML=str;
	}
</script>
</head>
<body style="background-color:#FFFFFF">
<table width="100%" border="0"  align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td height="40px" align="center" class="FontLarge_Bold">${licenseInfo.enterpriseName} 转账取款单</td>
				</tr>
				<tr>
				  	<td class="FontSmall" align="right">NO.&nbsp;${record.billCode}</td>
			  </tr>
		  </table>
		</td>
	</tr>
	<tr>
		<td>
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="small_border">
				<tr class="ListTrPrint">
			      	<td class="FontSmall" width="30%">日期：<fmt:formatDate value="${record.transferDate}" pattern="yyyy-MM-dd"/></td>
					<td width="30%" class="FontSmall">取出账户：<commonTag:showSimpleObjectName list="${bankAccountList}" objectId="${record.fromAccountId}" /></td>
			      	<td width="40%" class="FontSmall" >存入账户：<commonTag:showSimpleObjectName list="${bankAccountList}" objectId="${record.toAccountId}" /></td>
				</tr>
				<tr class="ListTrPrint">
			      	<td class="FontSmall">经办人：${record.managerName}</td>				
			      	<td class="FontSmall" colspan="2">摘要：${record.mark}</td>
				</tr>
				<tr class="ListTrPrint">
			      	<td class="FontSmall" colspan="3">
						金额(大写)：<span id="totalDiv"></span> ￥${record.cost}										
					</td>
				</tr>				
		  </table>
		</td>
	</tr>
	<tr>
		<td height="3"></td>
	</tr>
	<tr>
		<td>
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="ListTable">
				<tr class="ListTrPrint">
					<td class="FontSmall" width="33%">开单人：${record.createrName}</td>
					<td class="FontSmall" width="33%">审核人：${record.examinerName}</td>
					<td class="FontSmall" width="34%">签名：</td>
				</tr>
			</table>
		</td>
	</tr>
	<c:if test="${codeRule.printFoot!=null && codeRule.printFoot!=''}">
	<tr>
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td class="FontSmall"><commonTag:parseEnterToBr source="${codeRule.printFoot}" /></td>
				</tr>
			</table>
		</td>
	</tr>
	</c:if>
	<tr id="noPrinSpan">
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td>
						<input type="button" id="printButton" class="Button" value="开始打印 " onClick="doPrint();">
						<input type="button" id="cancelButton" class="Button" value=" 退 出 " onClick="doCancel();">
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>
<script language="javascript">
	showTotalDiv(${record.cost},"totalDiv");
</script>